﻿using AutoMapper;
using System;
using System.Collections.Generic;
using System.Text;

namespace JESAI.AutoMapper.Attributes
{
    public abstract class AutoMapAttributeBase : Attribute
    {
        public Type[] TargetTypes { get; private set; }
        protected AutoMapAttributeBase(params Type[] targetTypes)
        {
            TargetTypes = targetTypes;
        }
        /// <summary>
        /// 抽象CreateMap方法
        /// </summary>
        /// <param name="configuration"></param>
        /// <param name="type"></param>
        public abstract void CreateMap(IMapperConfigurationExpression configuration, Type type);
    }
}
